@prosopo/locale 2.5.5 → 3.1.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/cjs/i18SharedOptions.cjs +11 -0
  3. package/dist/cjs/i18nBackend.cjs +32 -0
  4. package/dist/cjs/i18nFrontend.cjs +60 -0
  5. package/dist/cjs/i18nMiddleware.cjs +8 -0
  6. package/dist/cjs/index.cjs +15 -0
  7. package/dist/cjs/loadI18next.cjs +28 -0
  8. package/dist/cjs/locales/en/translation.json.cjs +47 -0
  9. package/dist/cjs/translationKey.cjs +25 -0
  10. package/dist/cjs/translations.cjs +42 -0
  11. package/dist/cjs/useTranslation.cjs +8 -0
  12. package/dist/cjs/util.cjs +10 -0
  13. package/dist/i18SharedOptions.d.ts +8 -0
  14. package/dist/i18SharedOptions.d.ts.map +1 -0
  15. package/dist/i18SharedOptions.js +11 -0
  16. package/dist/i18nBackend.d.ts +2 -1
  17. package/dist/i18nBackend.d.ts.map +1 -1
  18. package/dist/i18nBackend.js +27 -25
  19. package/dist/i18nFrontend.d.ts +2 -1
  20. package/dist/i18nFrontend.d.ts.map +1 -1
  21. package/dist/i18nFrontend.js +48 -38
  22. package/dist/i18nMiddleware.js +5 -4
  23. package/dist/index.js +15 -7
  24. package/dist/loadI18next.d.ts.map +1 -1
  25. package/dist/loadI18next.js +26 -25
  26. package/dist/locales/ar/translation.json +442 -0
  27. package/dist/locales/az/translation.json +442 -0
  28. package/dist/locales/cs/translation.json +442 -0
  29. package/dist/locales/de/translation.json +440 -406
  30. package/dist/locales/el/translation.json +442 -0
  31. package/dist/locales/en/translation.json +440 -406
  32. package/dist/locales/en/translation.json.js +47 -0
  33. package/dist/locales/es/translation.json +440 -406
  34. package/dist/locales/fi/translation.json +442 -0
  35. package/dist/locales/fr/translation.json +440 -406
  36. package/dist/locales/hi/translation.json +442 -0
  37. package/dist/locales/hu/translation.json +442 -0
  38. package/dist/locales/id/translation.json +442 -0
  39. package/dist/locales/it/translation.json +440 -406
  40. package/dist/locales/ja/translation.json +442 -0
  41. package/dist/locales/jv/translation.json +442 -0
  42. package/dist/locales/ko/translation.json +442 -0
  43. package/dist/locales/ml/translation.json +442 -0
  44. package/dist/locales/ms/translation.json +442 -0
  45. package/dist/locales/nl/translation.json +442 -0
  46. package/dist/locales/no/translation.json +442 -0
  47. package/dist/locales/pl/translation.json +442 -0
  48. package/dist/locales/pt/translation.json +440 -406
  49. package/dist/locales/pt-BR/translation.json +440 -406
  50. package/dist/locales/ro/translation.json +442 -0
  51. package/dist/locales/ru/translation.json +442 -0
  52. package/dist/locales/sr/translation.json +442 -0
  53. package/dist/locales/sv/translation.json +442 -0
  54. package/dist/locales/th/translation.json +442 -0
  55. package/dist/locales/tr/translation.json +442 -0
  56. package/dist/locales/uk/translation.json +442 -0
  57. package/dist/locales/vi/translation.json +442 -0
  58. package/dist/locales/zh-CN/translation.json +442 -0
  59. package/dist/translationKey.js +21 -17
  60. package/dist/translations.d.ts +35 -2
  61. package/dist/translations.d.ts.map +1 -1
  62. package/dist/translations.js +41 -3
  63. package/dist/useTranslation.js +7 -6
  64. package/dist/util.js +8 -7
  65. package/package.json +24 -12
  66. package/vite.cjs.config.ts +5 -3
  67. package/vite.esm.config.ts +20 -0
  68. package/vite.test.config.ts +3 -4
  69. package/dist/i18nBackend.js.map +0 -1
  70. package/dist/i18nFrontend.js.map +0 -1
  71. package/dist/i18nMiddleware.js.map +0 -1
  72. package/dist/index.js.map +0 -1
  73. package/dist/loadI18next.js.map +0 -1
  74. package/dist/tests/locales.unit.test.js +0 -48
  75. package/dist/tests/locales.unit.test.js.map +0 -1
  76. package/dist/translationKey.js.map +0 -1
  77. package/dist/translations.js.map +0 -1
  78. package/dist/useTranslation.js.map +0 -1
  79. package/dist/util.js.map +0 -1
@@ -1,408 +1,442 @@
1
1
  {
2
- "ACCOUNT": {
3
- "NO_POLKADOT_EXTENSION": "Polkadot extension not found"
4
- },
5
- "WIDGET": {
6
- "SELECT_ALL": "Select all containing the following",
7
- "IF_NONE_CLICK_NEXT": "If there are none, click Next",
8
- "NEXT": "Next",
9
- "SUBMIT": "Submit",
10
- "CANCEL": "Cancel",
11
- "I_AM_HUMAN": "I am human",
12
- "NO_ACCOUNTS_FOUND": "No accounts found",
13
- "ACCOUNT_NOT_FOUND": "Account not found",
14
- "NO_EXTENSION_FOUND": "No extension found"
15
- },
16
- "GENERAL": {
17
- "JSON_LOAD_FAILED": "Failed to load JSON file",
18
- "MNEMONIC_UNDEFINED": "Mnemonic Undefined. Please set the mnemonic in environment variables",
19
- "NO_MNEMONIC_OR_SEED": "No mnemonic or seed provided",
20
- "CANT_FIND_KEYRINGPAIR": "Can't find the keyringpair for {{address}}",
21
- "ENVIRONMENT_NOT_READY": "Environment not ready",
22
- "INVALID_SIGNATURE": "Invalid signature",
23
- "SITE_KEY_MISSING": "SITE KEY missing",
24
- "ACCOUNT_NOT_FOUND": "Account not found",
25
- "INVALID_TIMESTAMP": "Invalid timestamp"
26
- },
27
- "CONTRACT": {
28
- "INVALID_ADDRESS": "Failed to encode invalid address",
29
- "CAPTCHA_SOLUTION_COMMITMENT_DOES_NOT_EXIST": "Captcha solution commitment does not exist",
30
- "SIGNER_UNDEFINED": "Signer undefined",
31
- "CANNOT_FIND_KEYPAIR": "Cannot find keypair",
32
- "INVALID_DATA_FORMAT": "Invalid data format"
33
- },
34
- "CONFIG": {
35
- "UNKNOWN_ENVIRONMENT": "Unknown environment requested",
36
- "INVALID_CAPTCHA_NUMBER": "Please configure captchas configurations correctly",
37
- "INVALID_LOG_LEVEL": "Invalid log level",
38
- "INVALID_PACKAGE_DIR": "Invalid package directory"
39
- },
40
- "DATASET": {
41
- "DATASET_PARSE_ERROR": "Error parsing dataset",
42
- "SOLUTION_PARSE_ERROR": "Error parsing dataset",
43
- "HASH_ERROR": "Error hashing dataset",
44
- "DATASET_ID_UNDEFINED": "Dataset id undefined",
45
- "NOT_ENOUGH_LABELS": "Not enough labels",
46
- "NOT_ENOUGH_IMAGES": "Not enough images",
47
- "CAPTCHAS_COUNT_LESS_THAN_CONFIGURED": "Number of captchas in dataset is less than configured number of captchas",
48
- "SOLUTIONS_COUNT_LESS_THAN_CONFIGURED": "Number of solutions in dataset is less than configured number of solutions",
49
- "DUPLICATE_IMAGE": "duplicate image detected",
50
- "MERKLE_ERROR": "Error creating merkle tree"
51
- },
52
- "DATABASE": {
53
- "DATABASE_IMPORT_FAILED": "Failed to import database engine",
54
- "DATABASE_UNDEFINED": "Database client is not connected",
55
- "DATABASE_HOST_UNDEFINED": "Database host address is not defined",
56
- "DATASET_LOAD_FAILED": "Data set load failed",
57
- "DATASET_GET_FAILED": "Failed to get dataset",
58
- "CAPTCHA_GET_FAILED": "Failed to get captcha",
59
- "CAPTCHA_UPDATE_FAILED": "Failed to update captcha",
60
- "IMAGE_GET_FAILED": "Failed to get image",
61
- "PENDING_RECORD_NOT_FOUND": "No pending record found",
62
- "INVALID_HASH": "Invalid hash",
63
- "SOLUTION_GET_FAILED": "Failed to get solution",
64
- "DATASET_WITH_SOLUTIONS_GET_FAILED": "No datasets found with required number of solutions",
65
- "SOLUTION_APPROVE_FAILED": "Failed to approve solution",
66
- "SOLUTION_FLAG_FAILED": "Failed to flag solution as processed",
67
- "TABLES_UNDEFINED": "Tables undefined",
68
- "CONNECTION_UNDEFINED": "Connection undefined",
69
- "COMMITMENT_FLAG_FAILED": "Failed to flag commitment as processed",
70
- "UNKNOWN": "Unknown database error"
71
- },
72
- "CAPTCHA": {
73
- "PARSE_ERROR": "Error parsing captcha",
74
- "INVALID_CAPTCHA_ID": "Invalid captcha id",
75
- "INVALID_ITEM_FORMAT": "Only image and text item types allowed",
76
- "INVALID_SOLUTION_TYPE": "Invalid solution type",
77
- "INVALID_ITEM_HASH": "Invalid item hash",
78
- "DIFFERENT_DATASET_IDS": "Dataset ids do not match",
79
- "ID_MISMATCH": "captcha id mismatch",
80
- "MISSING_ITEM_HASH": "missing item hash",
81
- "INVALID_CAPTCHA_CHALLENGE": "Invalid captcha challenge",
82
- "DAPP_USER_SOLUTION_NOT_FOUND": "Dapp user solution not found",
83
- "NO_CAPTCHA": "No captcha found",
84
- "NO_SESSION_FOUND": "No session found",
85
- "INVALID_TOKEN": "Invalid token",
86
- "INVALID_SOLUTION": "Invalid solution",
87
- "DECRYPTION_ERROR": "Error decrypting"
88
- },
89
- "API": {
90
- "CAPTCHA_FAILED": "You answered one or more captchas incorrectly. Please try again",
91
- "CAPTCHA_PASSED": "You correctly answered the captchas",
92
- "BAD_REQUEST": "BadRequest",
93
- "USER_VERIFIED": "User verified",
94
- "USER_NOT_VERIFIED": "User not verified",
95
- "USER_NOT_VERIFIED_TIME_EXPIRED": "User not verified. Captcha solution has expired.",
96
- "USER_NOT_VERIFIED_NO_SOLUTION": "User not verified. No captcha solution found.",
97
- "USER_ALREADY_VERIFIED": "This solution has already been verified. User should complete a new captcha.",
98
- "UNKNOWN": "Unknown API error",
99
- "SITE_KEY_NOT_REGISTERED": "Site key not registered",
100
- "INCORRECT_CAPTCHA_TYPE": "Incorrect CAPTCHA type",
101
- "INVALID_SITE_KEY": "Invalid site key",
102
- "UNAUTHORIZED_ORIGIN_URL": "Unauthorized origin URL",
103
- "INVALID_IP": "Invalid IP",
104
- "INVALID_URL": "Invalid URL",
105
- "INVALID_BODY": "Invalid body",
106
- "PARSE_ERROR": "Error parsing request"
107
- },
108
- "CLI": {
109
- "PARAMETER_ERROR": "Invalid parameter"
110
- },
111
- "DEVELOPER": {
112
- "PROSOPO_SITE_KEY_MISSING": "PROSOPO_SITE_KEY is not set in .env file.",
113
- "PROVIDER_NO_CAPTCHA": "No captchas returned from provider",
114
- "MISSING_PROVIDER_PAIR": "Missing provider pair",
115
- "MISSING_ENV_VARIABLE": "Missing environment variable",
116
- "GENERAL": "General Dev Error, see context",
117
- "MISSING_SECRET_KEY": "Missing secret key",
118
- "METHOD_NOT_IMPLEMENTED": "Method not implemented"
119
- },
120
- "FS": {
121
- "FILE_NOT_FOUND": "File not found",
122
- "FILE_ALREADY_EXISTS": "File already exists",
123
- "INVALID_DIR_FORMAT": "Invalid directory format"
124
- },
125
- "TARGET": {
126
- "bird": "bird",
127
- "bus": "bus",
128
- "car": "car",
129
- "cat": "cat",
130
- "deer": "deer",
131
- "dog": "dog",
132
- "horse": "horse",
133
- "plane": "plane",
134
- "train": "train",
135
- "animals": "animals",
136
- "antelope": "antelope",
137
- "backpack": "backpack",
138
- "badger": "badger",
139
- "baseball-bat": "baseball-bat",
140
- "baseball-glove": "baseball-glove",
141
- "basketball-hoop": "basketball-hoop",
142
- "bat": "bat",
143
- "bathtub": "bathtub",
144
- "bear": "bear",
145
- "bee": "bee",
146
- "beer-mug": "beer-mug",
147
- "beetle": "beetle",
148
- "billiards": "billiards",
149
- "binoculars": "binoculars",
150
- "birdbath": "birdbath",
151
- "bison": "bison",
152
- "blimp": "blimp",
153
- "boar": "boar",
154
- "bonsai-tree": "bonsai-tree",
155
- "boom-box": "boom-box",
156
- "bowling-ball": "bowling-ball",
157
- "bowling-pin": "bowling-pin",
158
- "boxing-glove": "boxing-glove",
159
- "breadmaker": "breadmaker",
160
- "bulldozer": "bulldozer",
161
- "butterfly": "butterfly",
162
- "cactus": "cactus",
163
- "cake": "cake",
164
- "calculator": "calculator",
165
- "camel": "camel",
166
- "canoe": "canoe",
167
- "car-tire": "car-tire",
168
- "caterpillar": "caterpillar",
169
- "cd": "cd",
170
- "cereal-box": "cereal-box",
171
- "chandelier": "chandelier",
172
- "chess-board": "chess-board",
173
- "chimpanzee": "chimpanzee",
174
- "chopsticks": "chopsticks",
175
- "cockroach": "cockroach",
176
- "coffin": "coffin",
177
- "coin": "coin",
178
- "comet": "comet",
179
- "computer-keyboard": "computer-keyboard",
180
- "computer-monitor": "computer-monitor",
181
- "computer-mouse": "computer-mouse",
182
- "conch": "conch",
183
- "cormorant": "cormorant",
184
- "covered-wagon": "covered-wagon",
185
- "cow": "cow",
186
- "cowboy-hat": "cowboy-hat",
187
- "coyote": "coyote",
188
- "crab": "crab",
189
- "crow": "crow",
190
- "desk-globe": "desk-globe",
191
- "diamond-ring": "diamond-ring",
192
- "dice": "dice",
193
- "dolphin": "dolphin",
194
- "donkey": "donkey",
195
- "doorknob": "doorknob",
196
- "dragonfly": "dragonfly",
197
- "drinking-straw": "drinking-straw",
198
- "duck": "duck",
199
- "dumb-bell": "dumb-bell",
200
- "eagle": "eagle",
201
- "eiffel-tower": "eiffel-tower",
202
- "electric-guitar": "electric-guitar",
203
- "elephant": "elephant",
204
- "elk": "elk",
205
- "eyeglasses": "eyeglasses",
206
- "fern": "fern",
207
- "fire-extinguisher": "fire-extinguisher",
208
- "fire-hydrant": "fire-hydrant",
209
- "fire-truck": "fire-truck",
210
- "fireworks": "fireworks",
211
- "flamingo": "flamingo",
212
- "fly": "fly",
213
- "fox": "fox",
214
- "french-horn": "french-horn",
215
- "fried-egg": "fried-egg",
216
- "frisbee": "frisbee",
217
- "frog": "frog",
218
- "frying-pan": "frying-pan",
219
- "galaxy": "galaxy",
220
- "gas-pump": "gas-pump",
221
- "giraffe": "giraffe",
222
- "goat": "goat",
223
- "golden-gate-bridge": "golden-gate-bridge",
224
- "goldfish": "goldfish",
225
- "golf-ball": "golf-ball",
226
- "goose": "goose",
227
- "gorilla": "gorilla",
228
- "grapes": "grapes",
229
- "grasshopper": "grasshopper",
230
- "greyhound": "greyhound",
231
- "guitar-pick": "guitar-pick",
232
- "hamburger": "hamburger",
233
- "hammock": "hammock",
234
- "hamster": "hamster",
235
- "hare": "hare",
236
- "harmonica": "harmonica",
237
- "harp": "harp",
238
- "harpsichord": "harpsichord",
239
- "head-phones": "head-phones",
240
- "hedgehog": "hedgehog",
241
- "helicopter": "helicopter",
242
- "hibiscus": "hibiscus",
243
- "hippopotamus": "hippopotamus",
244
- "homer-simpson": "homer-simpson",
245
- "hornbill": "hornbill",
246
- "horseshoe-crab": "horseshoe-crab",
247
- "hot-air-balloon": "hot-air-balloon",
248
- "hot-dog": "hot-dog",
249
- "hot-tub": "hot-tub",
250
- "hourglass": "hourglass",
251
- "house-fly": "house-fly",
252
- "hummingbird": "hummingbird",
253
- "hyena": "hyena",
254
- "ice-cream-cone": "ice-cream-cone",
255
- "iguana": "iguana",
256
- "ipod": "ipod",
257
- "jellyfish": "jellyfish",
258
- "joy-stick": "joy-stick",
259
- "kangaroo": "kangaroo",
260
- "kayak": "kayak",
261
- "killer-whale": "killer-whale",
262
- "koala": "koala",
263
- "ladder": "ladder",
264
- "ladybugs": "ladybugs",
265
- "laptop": "laptop",
266
- "leopard": "leopard",
267
- "license-plate": "license-plate",
268
- "light-house": "light-house",
269
- "lightbulb": "lightbulb",
270
- "lightning": "lightning",
271
- "lion": "lion",
272
- "lizard": "lizard",
273
- "llama": "llama",
274
- "lobster": "lobster",
275
- "mailbox": "mailbox",
276
- "mandolin": "mandolin",
277
- "mars": "mars",
278
- "mattress": "mattress",
279
- "megaphone": "megaphone",
280
- "microscope": "microscope",
281
- "microwave": "microwave",
282
- "minaret": "minaret",
283
- "minotaur": "minotaur",
284
- "mosquito": "mosquito",
285
- "moth": "moth",
286
- "motorbikes": "motorbikes",
287
- "mountain-bike": "mountain-bike",
288
- "mouse": "mouse",
289
- "mushroom": "mushroom",
290
- "mussels": "mussels",
291
- "necktie": "necktie",
292
- "octopus": "octopus",
293
- "okapi": "okapi",
294
- "orangutan": "orangutan",
295
- "ostrich": "ostrich",
296
- "otter": "otter",
297
- "owl": "owl",
298
- "ox": "ox",
299
- "oyster": "oyster",
300
- "palm-pilot": "palm-pilot",
301
- "palm-tree": "palm-tree",
302
- "panda": "panda",
303
- "paper-shredder": "paper-shredder",
304
- "paperclip": "paperclip",
305
- "parrot": "parrot",
306
- "pci-card": "pci-card",
307
- "pelecaniformes": "pelecaniformes",
308
- "penguin": "penguin",
309
- "photocopier": "photocopier",
310
- "piano": "piano",
311
- "picnic-table": "picnic-table",
312
- "pig": "pig",
313
- "pigeon": "pigeon",
314
- "playing-card": "playing-card",
315
- "porcupine": "porcupine",
316
- "possum": "possum",
317
- "pram": "pram",
318
- "pyramid": "pyramid",
319
- "raccoon": "raccoon",
320
- "radio-telescope": "radio-telescope",
321
- "rainbow": "rainbow",
322
- "rat": "rat",
323
- "refrigerator": "refrigerator",
324
- "reindeer": "reindeer",
325
- "rhinoceros": "rhinoceros",
326
- "rotary-phone": "rotary-phone",
327
- "roulette-wheel": "roulette-wheel",
328
- "saddle": "saddle",
329
- "sandpiper": "sandpiper",
330
- "saturn": "saturn",
331
- "school-bus": "school-bus",
332
- "screwdriver": "screwdriver",
333
- "seahorse": "seahorse",
334
- "seal": "seal",
335
- "segway": "segway",
336
- "self-propelled-lawn-mower": "self-propelled-lawn-mower",
337
- "shark": "shark",
338
- "sheep": "sheep",
339
- "sheet-music": "sheet-music",
340
- "skateboard": "skateboard",
341
- "skunk": "skunk",
342
- "skyscraper": "skyscraper",
343
- "smokestack": "smokestack",
344
- "snail": "snail",
345
- "snake": "snake",
346
- "sneaker": "sneaker",
347
- "snowmobile": "snowmobile",
348
- "soccer-ball": "soccer-ball",
349
- "socks": "socks",
350
- "soda-can": "soda-can",
351
- "spaghetti": "spaghetti",
352
- "sparrow": "sparrow",
353
- "speed-boat": "speed-boat",
354
- "spoon": "spoon",
355
- "squid": "squid",
356
- "squirrel": "squirrel",
357
- "stained-glass": "stained-glass",
358
- "starfish": "starfish",
359
- "steering-wheel": "steering-wheel",
360
- "stirrups": "stirrups",
361
- "sunflower": "sunflower",
362
- "superman": "superman",
363
- "sushi": "sushi",
364
- "swan": "swan",
365
- "t-shirt": "t-shirt",
366
- "teapot": "teapot",
367
- "teddy-bear": "teddy-bear",
368
- "telephone-box": "telephone-box",
369
- "tennis-ball": "tennis-ball",
370
- "tennis-court": "tennis-court",
371
- "tennis-racket": "tennis-racket",
372
- "tiger": "tiger",
373
- "toad": "toad",
374
- "toaster": "toaster",
375
- "tomato": "tomato",
376
- "tombstone": "tombstone",
377
- "top-hat": "top-hat",
378
- "touring-bike": "touring-bike",
379
- "tower-pisa": "tower-pisa",
380
- "traffic-light": "traffic-light",
381
- "treadmill": "treadmill",
382
- "triceratops": "triceratops",
383
- "tricycle": "tricycle",
384
- "tripod": "tripod",
385
- "tuning-fork": "tuning-fork",
386
- "turkey": "turkey",
387
- "turtle": "turtle",
388
- "tweezer": "tweezer",
389
- "umbrella": "umbrella",
390
- "unicorn": "unicorn",
391
- "video-projector": "video-projector",
392
- "washing-machine": "washing-machine",
393
- "watch": "watch",
394
- "waterfall": "waterfall",
395
- "watermelon": "watermelon",
396
- "welding-mask": "welding-mask",
397
- "whale": "whale",
398
- "wheelbarrow": "wheelbarrow",
399
- "windmill": "windmill",
400
- "wine-bottle": "wine-bottle",
401
- "wolf": "wolf",
402
- "wombat": "wombat",
403
- "woodpecker": "woodpecker",
404
- "xylophone": "xylophone",
405
- "yo-yo": "yo-yo",
406
- "zebra": "zebra"
407
- }
2
+ "ACCOUNT": {
3
+ "NO_POLKADOT_EXTENSION": "Polkadot extension not found"
4
+ },
5
+ "WIDGET": {
6
+ "SELECT_ALL": "Select all containing the following",
7
+ "IF_NONE_CLICK_NEXT": "If there are none, click Next",
8
+ "NEXT": "Next",
9
+ "SUBMIT": "Submit",
10
+ "CANCEL": "Cancel",
11
+ "I_AM_HUMAN": "I am human",
12
+ "NO_ACCOUNTS_FOUND": "No accounts found",
13
+ "ACCOUNT_NOT_FOUND": "Account not found",
14
+ "NO_EXTENSION_FOUND": "No extension found"
15
+ },
16
+ "GENERAL": {
17
+ "JSON_LOAD_FAILED": "Failed to load JSON file",
18
+ "MNEMONIC_UNDEFINED": "Mnemonic Undefined. Please set the mnemonic in environment variables",
19
+ "NO_MNEMONIC_OR_SEED": "No secret provided",
20
+ "CANT_FIND_KEYRINGPAIR": "Can't find the keyringpair for {{address}}",
21
+ "ENVIRONMENT_NOT_READY": "Environment not ready",
22
+ "INVALID_SIGNATURE": "Invalid signature",
23
+ "SITE_KEY_MISSING": "SITE KEY missing",
24
+ "ACCOUNT_NOT_FOUND": "Account not found",
25
+ "SITE_KEY_NOT_FOUND": "Site key not found",
26
+ "INVALID_TIMESTAMP": "Invalid timestamp",
27
+ "MISSING_SECRET_KEY": "Missing secret key"
28
+ },
29
+ "CONTRACT": {
30
+ "INVALID_ADDRESS": "Failed to encode invalid address",
31
+ "CAPTCHA_SOLUTION_COMMITMENT_DOES_NOT_EXIST": "Captcha solution commitment does not exist",
32
+ "SIGNER_UNDEFINED": "Signer undefined",
33
+ "CANNOT_FIND_KEYPAIR": "Cannot find keypair",
34
+ "INVALID_DATA_FORMAT": "Invalid data format"
35
+ },
36
+ "CONFIG": {
37
+ "UNKNOWN_ENVIRONMENT": "Unknown environment requested",
38
+ "INVALID_CAPTCHA_NUMBER": "Please configure captchas configurations correctly",
39
+ "INVALID_LOG_LEVEL": "Invalid log level",
40
+ "INVALID_PACKAGE_DIR": "Invalid package directory"
41
+ },
42
+ "DATASET": {
43
+ "DATASET_PARSE_ERROR": "Error parsing dataset",
44
+ "SOLUTION_PARSE_ERROR": "Error parsing dataset",
45
+ "HASH_ERROR": "Error hashing dataset",
46
+ "DATASET_ID_UNDEFINED": "Dataset id undefined",
47
+ "NOT_ENOUGH_LABELS": "Not enough labels",
48
+ "NOT_ENOUGH_IMAGES": "Not enough images",
49
+ "CAPTCHAS_COUNT_LESS_THAN_CONFIGURED": "Number of captchas in dataset is less than configured number of captchas",
50
+ "SOLUTIONS_COUNT_LESS_THAN_CONFIGURED": "Number of solutions in dataset is less than configured number of solutions",
51
+ "DUPLICATE_IMAGE": "duplicate image detected",
52
+ "MERKLE_ERROR": "Error creating merkle tree"
53
+ },
54
+ "DATABASE": {
55
+ "DATABASE_IMPORT_FAILED": "Failed to import database engine",
56
+ "DATABASE_UNDEFINED": "Database client is not connected",
57
+ "DATABASE_HOST_UNDEFINED": "Database host address is not defined",
58
+ "DATASET_LOAD_FAILED": "Data set load failed",
59
+ "DATASET_GET_FAILED": "Failed to get dataset",
60
+ "CAPTCHA_GET_FAILED": "Failed to get captcha",
61
+ "CAPTCHA_UPDATE_FAILED": "Failed to update captcha",
62
+ "IMAGE_GET_FAILED": "Failed to get image",
63
+ "PENDING_RECORD_NOT_FOUND": "No pending record found",
64
+ "INVALID_HASH": "Invalid hash",
65
+ "SOLUTION_GET_FAILED": "Failed to get solution",
66
+ "DATASET_WITH_SOLUTIONS_GET_FAILED": "No datasets found with required number of solutions",
67
+ "SOLUTION_APPROVE_FAILED": "Failed to approve solution",
68
+ "SOLUTION_FLAG_FAILED": "Failed to flag solution as processed",
69
+ "TABLES_UNDEFINED": "Tables undefined",
70
+ "CONNECTION_UNDEFINED": "Connection undefined",
71
+ "COMMITMENT_FLAG_FAILED": "Failed to flag commitment as processed",
72
+ "UNKNOWN": "Unknown database error"
73
+ },
74
+ "CAPTCHA": {
75
+ "PARSE_ERROR": "Error parsing captcha",
76
+ "INVALID_CAPTCHA_ID": "Invalid captcha id",
77
+ "INVALID_ITEM_FORMAT": "Only image and text item types allowed",
78
+ "INVALID_SOLUTION_TYPE": "Invalid solution type",
79
+ "INVALID_ITEM_HASH": "Invalid item hash",
80
+ "DIFFERENT_DATASET_IDS": "Dataset ids do not match",
81
+ "ID_MISMATCH": "captcha id mismatch",
82
+ "MISSING_ITEM_HASH": "missing item hash",
83
+ "INVALID_CAPTCHA_CHALLENGE": "Invalid captcha challenge",
84
+ "DAPP_USER_SOLUTION_NOT_FOUND": "Dapp user solution not found",
85
+ "NO_CAPTCHA": "No captcha found",
86
+ "NO_SESSION_FOUND": "No session found",
87
+ "INVALID_TOKEN": "Invalid token",
88
+ "INVALID_SOLUTION": "Invalid solution",
89
+ "DECRYPTION_ERROR": "Error decrypting"
90
+ },
91
+ "API": {
92
+ "CAPTCHA_FAILED": "You answered one or more captchas incorrectly. Please try again",
93
+ "CAPTCHA_PASSED": "You correctly answered the captchas",
94
+ "BAD_REQUEST": "BadRequest",
95
+ "USER_VERIFIED": "User verified",
96
+ "USER_NOT_VERIFIED": "User not verified",
97
+ "USER_NOT_VERIFIED_TIME_EXPIRED": "User not verified. Captcha solution has expired.",
98
+ "USER_NOT_VERIFIED_NO_SOLUTION": "User not verified. No captcha solution found.",
99
+ "USER_ALREADY_VERIFIED": "This solution has already been verified. User should complete a new captcha.",
100
+ "UNKNOWN": "Unknown API error",
101
+ "SITE_KEY_NOT_REGISTERED": "Site key not registered",
102
+ "INCORRECT_CAPTCHA_TYPE": "Incorrect CAPTCHA type",
103
+ "INSUFFICIENT_PERMISSIONS": "Insufficient permissions to perform this action",
104
+ "INVALID_SITE_KEY": "Invalid site key",
105
+ "UNAUTHORIZED_ORIGIN_URL": "Unauthorized origin URL",
106
+ "UNAUTHORIZED": "Unauthorized",
107
+ "INVALID_IP": "Invalid IP",
108
+ "INVALID_URL": "Invalid URL",
109
+ "INVALID_BODY": "Invalid body",
110
+ "MISSING_BODY": "Missing body",
111
+ "MISSING_QUERY_PARAMETERS": "Missing query parameters",
112
+ "MISSING_AUTHORIZATION_HEADER": "Missing authorization header",
113
+ "PARSE_ERROR": "Error parsing request",
114
+ "NO_CONTENT_TYPE_HEADER": "No content-type header. Assumed JSON encoded body but failed to parse.",
115
+ "TIMESTAMP_TOO_OLD": "Timestamp too old",
116
+ "FORBIDDEN": "Forbidden",
117
+ "PROVIDER_VERIFY_FAILED": "Provider verification failed"
118
+ },
119
+ "PORTAL": {
120
+ "CANNOT_MODIFY_OWNER_USER": "Cannot modify owner user",
121
+ "CANNOT_DELETE_OWN_USER": "Cannot delete your own account",
122
+ "CANNOT_DELETE_LAST_USER": "Cannot delete last user",
123
+ "USER_ALREADY_EXISTS": "User already exists",
124
+ "NO_SUGGESTIONS_FOUND": "No suggestions found",
125
+ "CANNOT_DEACTIVATE_LAST_SITE": "Cannot deactivate the last active site"
126
+ },
127
+ "CLI": {
128
+ "PARAMETER_ERROR": "Invalid parameter"
129
+ },
130
+ "DEVELOPER": {
131
+ "PROSOPO_SITE_KEY_MISSING": "PROSOPO_SITE_KEY is not set in .env file.",
132
+ "PROVIDER_NO_CAPTCHA": "No captchas returned from provider",
133
+ "MISSING_PROVIDER_PAIR": "Missing provider pair",
134
+ "MISSING_ENV_VARIABLE": "Missing environment variable",
135
+ "GENERAL": "General Dev Error, see context",
136
+ "METHOD_NOT_IMPLEMENTED": "Method not implemented"
137
+ },
138
+ "FS": {
139
+ "FILE_NOT_FOUND": "File not found",
140
+ "FILE_ALREADY_EXISTS": "File already exists",
141
+ "INVALID_DIR_FORMAT": "Invalid directory format"
142
+ },
143
+ "TARGET": {
144
+ "bird": "bird",
145
+ "bus": "bus",
146
+ "car": "car",
147
+ "cat": "cat",
148
+ "deer": "deer",
149
+ "dog": "dog",
150
+ "horse": "horse",
151
+ "plane": "plane",
152
+ "train": "train",
153
+ "animals": "animals",
154
+ "antelope": "antelope",
155
+ "backpack": "backpack",
156
+ "badger": "badger",
157
+ "baseball-bat": "baseball bat",
158
+ "baseball-glove": "baseball glove",
159
+ "basketball-hoop": "basketball hoop",
160
+ "bat": "bat",
161
+ "bathtub": "bathtub",
162
+ "bear": "bear",
163
+ "bee": "bee",
164
+ "beer-mug": "beer mug",
165
+ "beetle": "beetle",
166
+ "billiards": "billiards",
167
+ "binoculars": "binoculars",
168
+ "birdbath": "birdbath",
169
+ "bison": "bison",
170
+ "blimp": "blimp",
171
+ "boar": "boar",
172
+ "bonsai-tree": "bonsai tree",
173
+ "boom-box": "boom box",
174
+ "bowling-ball": "bowling ball",
175
+ "bowling-pin": "bowling pin",
176
+ "boxing-glove": "boxing glove",
177
+ "breadmaker": "breadmaker",
178
+ "bulldozer": "bulldozer",
179
+ "butterfly": "butterfly",
180
+ "cactus": "cactus",
181
+ "cake": "cake",
182
+ "calculator": "calculator",
183
+ "camel": "camel",
184
+ "canoe": "canoe",
185
+ "car-tire": "car tire",
186
+ "caterpillar": "caterpillar",
187
+ "cd": "CD",
188
+ "cereal-box": "cereal box",
189
+ "chandelier": "chandelier",
190
+ "chess-board": "chess board",
191
+ "chimpanzee": "chimpanzee",
192
+ "chopsticks": "chopsticks",
193
+ "cockroach": "cockroach",
194
+ "coffin": "coffin",
195
+ "coin": "coin",
196
+ "comet": "comet",
197
+ "computer-keyboard": "computer keyboard",
198
+ "computer-monitor": "computer monitor",
199
+ "computer-mouse": "computer mouse",
200
+ "conch": "conch",
201
+ "cormorant": "cormorant",
202
+ "covered-wagon": "covered wagon",
203
+ "cow": "cow",
204
+ "cowboy-hat": "cowboy hat",
205
+ "coyote": "coyote",
206
+ "crab": "crab",
207
+ "crow": "crow",
208
+ "desk-globe": "desk globe",
209
+ "diamond-ring": "diamond ring",
210
+ "dice": "dice",
211
+ "dolphin": "dolphin",
212
+ "donkey": "donkey",
213
+ "doorknob": "doorknob",
214
+ "dragonfly": "dragonfly",
215
+ "drinking-straw": "drinking straw",
216
+ "duck": "duck",
217
+ "dumb-bell": "dumbbell",
218
+ "eagle": "eagle",
219
+ "eiffel-tower": "Eiffel Tower",
220
+ "electric-guitar": "electric guitar",
221
+ "elephant": "elephant",
222
+ "elk": "elk",
223
+ "eyeglasses": "eyeglasses",
224
+ "fern": "fern",
225
+ "fire-extinguisher": "fire extinguisher",
226
+ "fire-hydrant": "fire hydrant",
227
+ "fire-truck": "fire truck",
228
+ "fireworks": "fireworks",
229
+ "flamingo": "flamingo",
230
+ "fly": "fly",
231
+ "fox": "fox",
232
+ "french-horn": "French horn",
233
+ "fried-egg": "fried egg",
234
+ "frisbee": "frisbee",
235
+ "frog": "frog",
236
+ "frying-pan": "frying pan",
237
+ "galaxy": "galaxy",
238
+ "gas-pump": "gas pump",
239
+ "giraffe": "giraffe",
240
+ "goat": "goat",
241
+ "golden-gate-bridge": "Golden Gate Bridge",
242
+ "goldfish": "goldfish",
243
+ "golf-ball": "golf ball",
244
+ "goose": "goose",
245
+ "gorilla": "gorilla",
246
+ "grapes": "grapes",
247
+ "grasshopper": "grasshopper",
248
+ "greyhound": "greyhound",
249
+ "guitar-pick": "guitar pick",
250
+ "hamburger": "hamburger",
251
+ "hammock": "hammock",
252
+ "hamster": "hamster",
253
+ "hare": "hare",
254
+ "harmonica": "harmonica",
255
+ "harp": "harp",
256
+ "harpsichord": "harpsichord",
257
+ "head-phones": "headphones",
258
+ "hedgehog": "hedgehog",
259
+ "helicopter": "helicopter",
260
+ "hibiscus": "hibiscus",
261
+ "hippopotamus": "hippopotamus",
262
+ "homer-simpson": "Homer Simpson",
263
+ "hornbill": "hornbill",
264
+ "horseshoe-crab": "horseshoe crab",
265
+ "hot-air-balloon": "hot air balloon",
266
+ "hot-dog": "hot dog",
267
+ "hot-tub": "hot tub",
268
+ "hourglass": "hourglass",
269
+ "house-fly": "house fly",
270
+ "hummingbird": "hummingbird",
271
+ "hyena": "hyena",
272
+ "ice-cream-cone": "ice cream cone",
273
+ "iguana": "iguana",
274
+ "ipod": "iPod",
275
+ "jellyfish": "jellyfish",
276
+ "joy-stick": "joystick",
277
+ "kangaroo": "kangaroo",
278
+ "kayak": "kayak",
279
+ "killer-whale": "killer whale",
280
+ "koala": "koala",
281
+ "ladder": "ladder",
282
+ "ladybugs": "ladybugs",
283
+ "laptop": "laptop",
284
+ "leopard": "leopard",
285
+ "license-plate": "license plate",
286
+ "light-house": "lighthouse",
287
+ "lightbulb": "lightbulb",
288
+ "lightning": "lightning",
289
+ "lion": "lion",
290
+ "lizard": "lizard",
291
+ "llama": "llama",
292
+ "lobster": "lobster",
293
+ "mailbox": "mailbox",
294
+ "mandolin": "mandolin",
295
+ "mars": "Mars",
296
+ "mattress": "mattress",
297
+ "megaphone": "megaphone",
298
+ "microscope": "microscope",
299
+ "microwave": "microwave",
300
+ "minaret": "minaret",
301
+ "minotaur": "minotaur",
302
+ "mosquito": "mosquito",
303
+ "moth": "moth",
304
+ "motorbikes": "motorbikes",
305
+ "mountain-bike": "mountain bike",
306
+ "mouse": "mouse",
307
+ "mushroom": "mushroom",
308
+ "mussels": "mussels",
309
+ "necktie": "necktie",
310
+ "octopus": "octopus",
311
+ "okapi": "okapi",
312
+ "orangutan": "orangutan",
313
+ "ostrich": "ostrich",
314
+ "otter": "otter",
315
+ "owl": "owl",
316
+ "ox": "ox",
317
+ "oyster": "oyster",
318
+ "palm-pilot": "Palm Pilot",
319
+ "palm-tree": "palm tree",
320
+ "panda": "panda",
321
+ "paper-shredder": "paper shredder",
322
+ "paperclip": "paperclip",
323
+ "parrot": "parrot",
324
+ "pci-card": "PCI card",
325
+ "pelecaniformes": "pelecaniformes",
326
+ "penguin": "penguin",
327
+ "photocopier": "photocopier",
328
+ "piano": "piano",
329
+ "picnic-table": "picnic table",
330
+ "pig": "pig",
331
+ "pigeon": "pigeon",
332
+ "playing-card": "playing card",
333
+ "porcupine": "porcupine",
334
+ "possum": "possum",
335
+ "pram": "pram",
336
+ "pyramid": "pyramid",
337
+ "raccoon": "raccoon",
338
+ "radio-telescope": "radio telescope",
339
+ "rainbow": "rainbow",
340
+ "rat": "rat",
341
+ "refrigerator": "refrigerator",
342
+ "reindeer": "reindeer",
343
+ "rhinoceros": "rhinoceros",
344
+ "rotary-phone": "rotary phone",
345
+ "roulette-wheel": "roulette wheel",
346
+ "saddle": "saddle",
347
+ "sandpiper": "sandpiper",
348
+ "saturn": "Saturn",
349
+ "school-bus": "school bus",
350
+ "screwdriver": "screwdriver",
351
+ "seahorse": "seahorse",
352
+ "seal": "seal",
353
+ "segway": "Segway",
354
+ "self-propelled-lawn-mower": "self propelled lawn mower",
355
+ "shark": "shark",
356
+ "sheep": "sheep",
357
+ "sheet-music": "sheet music",
358
+ "skateboard": "skateboard",
359
+ "skunk": "skunk",
360
+ "skyscraper": "skyscraper",
361
+ "smokestack": "smokestack",
362
+ "snail": "snail",
363
+ "snake": "snake",
364
+ "sneaker": "sneaker",
365
+ "snowmobile": "snowmobile",
366
+ "soccer-ball": "soccer ball",
367
+ "socks": "socks",
368
+ "soda-can": "soda can",
369
+ "spaghetti": "spaghetti",
370
+ "sparrow": "sparrow",
371
+ "speed-boat": "speedboat",
372
+ "spoon": "spoon",
373
+ "squid": "squid",
374
+ "squirrel": "squirrel",
375
+ "stained-glass": "stained glass",
376
+ "starfish": "starfish",
377
+ "steering-wheel": "steering wheel",
378
+ "stirrups": "stirrups",
379
+ "sunflower": "sunflower",
380
+ "superman": "Superman",
381
+ "sushi": "sushi",
382
+ "swan": "swan",
383
+ "t-shirt": "T-shirt",
384
+ "teapot": "teapot",
385
+ "teddy-bear": "teddy bear",
386
+ "telephone-box": "telephone box",
387
+ "tennis-ball": "tennis ball",
388
+ "tennis-court": "tennis court",
389
+ "tennis-racket": "tennis racket",
390
+ "tiger": "tiger",
391
+ "toad": "toad",
392
+ "toaster": "toaster",
393
+ "tomato": "tomato",
394
+ "tombstone": "tombstone",
395
+ "top-hat": "top hat",
396
+ "touring-bike": "touring bike",
397
+ "tower-pisa": "Tower of Pisa",
398
+ "traffic-light": "traffic light",
399
+ "treadmill": "treadmill",
400
+ "triceratops": "triceratops",
401
+ "tricycle": "tricycle",
402
+ "tripod": "tripod",
403
+ "tuning-fork": "tuning fork",
404
+ "turkey": "turkey",
405
+ "turtle": "turtle",
406
+ "tweezer": "tweezers",
407
+ "umbrella": "umbrella",
408
+ "unicorn": "unicorn",
409
+ "video-projector": "video projector",
410
+ "washing-machine": "washing machine",
411
+ "watch": "watch",
412
+ "waterfall": "waterfall",
413
+ "watermelon": "watermelon",
414
+ "welding-mask": "welding mask",
415
+ "whale": "whale",
416
+ "wheelbarrow": "wheelbarrow",
417
+ "windmill": "windmill",
418
+ "wine-bottle": "wine bottle",
419
+ "wolf": "wolf",
420
+ "wombat": "wombat",
421
+ "woodpecker": "woodpecker",
422
+ "xylophone": "xylophone",
423
+ "yo-yo": "yo-yo",
424
+ "zebra": "zebra",
425
+ "airplanes": "airplanes",
426
+ "american-flag": "American flag",
427
+ "bonsai": "bonsai",
428
+ "buddha": "Buddha",
429
+ "cannon": "cannon",
430
+ "coffee-mug": "coffee mug",
431
+ "flashlight": "flashlight",
432
+ "floppy-disk": "floppy disk",
433
+ "football-helmet": "football helmet",
434
+ "grand-piano": "grand piano",
435
+ "jesus-christ": "Jesus Christ",
436
+ "knife": "knife",
437
+ "leopards": "leopards",
438
+ "sword": "sword",
439
+ "syringe": "syringe",
440
+ "tambourine": "tambourine"
441
+ }
408
442
  }