@prosopo/locale 3.2.7 → 3.2.9

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