@prosopo/locale 3.6.2 → 3.8.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.
Files changed (106) hide show
  1. package/.turbo/turbo-build$colon$cjs.log +3 -6
  2. package/.turbo/turbo-build$colon$tsc.log +6 -9
  3. package/.turbo/turbo-build.log +5 -11
  4. package/CHANGELOG.md +43 -0
  5. package/LICENSE +201 -0
  6. package/dist/cjs/locales/en/translation.cjs +24 -2
  7. package/dist/locales/ar/translation.json +24 -2
  8. package/dist/locales/az/translation.json +24 -2
  9. package/dist/locales/cs/translation.json +24 -2
  10. package/dist/locales/de/translation.json +24 -2
  11. package/dist/locales/el/translation.json +24 -2
  12. package/dist/locales/en/translation.js +24 -2
  13. package/dist/locales/en/translation.json +24 -2
  14. package/dist/locales/es/translation.json +24 -2
  15. package/dist/locales/fi/translation.json +24 -2
  16. package/dist/locales/fr/translation.json +24 -2
  17. package/dist/locales/hi/translation.json +24 -2
  18. package/dist/locales/hu/translation.json +24 -2
  19. package/dist/locales/id/translation.json +24 -2
  20. package/dist/locales/it/translation.json +24 -2
  21. package/dist/locales/ja/translation.json +24 -2
  22. package/dist/locales/jv/translation.json +24 -2
  23. package/dist/locales/ko/translation.json +24 -2
  24. package/dist/locales/ml/translation.json +24 -2
  25. package/dist/locales/ms/translation.json +24 -2
  26. package/dist/locales/nl/translation.json +24 -2
  27. package/dist/locales/no/translation.json +24 -2
  28. package/dist/locales/pl/translation.json +24 -2
  29. package/dist/locales/pt/translation.json +24 -2
  30. package/dist/locales/pt-BR/translation.json +24 -2
  31. package/dist/locales/ro/translation.json +24 -2
  32. package/dist/locales/ru/translation.json +24 -2
  33. package/dist/locales/sr/translation.json +24 -2
  34. package/dist/locales/sv/translation.json +24 -2
  35. package/dist/locales/th/translation.json +24 -2
  36. package/dist/locales/tr/translation.json +24 -2
  37. package/dist/locales/uk/translation.json +24 -2
  38. package/dist/locales/vi/translation.json +24 -2
  39. package/dist/locales/zh-CN/translation.json +24 -2
  40. package/package.json +65 -66
  41. package/src/direction.ts +0 -36
  42. package/src/errorMessage.ts +0 -37
  43. package/src/i18SharedOptions.ts +0 -29
  44. package/src/i18nBackend.ts +0 -69
  45. package/src/i18nFrontend.ts +0 -267
  46. package/src/i18nMiddleware.ts +0 -35
  47. package/src/index.ts +0 -33
  48. package/src/loadI18next.ts +0 -136
  49. package/src/locales/ar/translation.json +0 -493
  50. package/src/locales/az/translation.json +0 -493
  51. package/src/locales/cs/translation.json +0 -493
  52. package/src/locales/de/translation.json +0 -493
  53. package/src/locales/el/translation.json +0 -493
  54. package/src/locales/en/translation.json +0 -493
  55. package/src/locales/es/translation.json +0 -493
  56. package/src/locales/fi/translation.json +0 -493
  57. package/src/locales/fr/translation.json +0 -493
  58. package/src/locales/hi/translation.json +0 -493
  59. package/src/locales/hu/translation.json +0 -493
  60. package/src/locales/id/translation.json +0 -493
  61. package/src/locales/it/translation.json +0 -493
  62. package/src/locales/ja/translation.json +0 -493
  63. package/src/locales/jv/translation.json +0 -493
  64. package/src/locales/ko/translation.json +0 -493
  65. package/src/locales/ml/translation.json +0 -493
  66. package/src/locales/ms/translation.json +0 -493
  67. package/src/locales/nl/translation.json +0 -493
  68. package/src/locales/no/translation.json +0 -493
  69. package/src/locales/pl/translation.json +0 -493
  70. package/src/locales/pt/translation.json +0 -493
  71. package/src/locales/pt-BR/translation.json +0 -493
  72. package/src/locales/ro/translation.json +0 -493
  73. package/src/locales/ru/translation.json +0 -493
  74. package/src/locales/sr/translation.json +0 -493
  75. package/src/locales/sv/translation.json +0 -493
  76. package/src/locales/th/translation.json +0 -493
  77. package/src/locales/tr/translation.json +0 -493
  78. package/src/locales/uk/translation.json +0 -493
  79. package/src/locales/vi/translation.json +0 -493
  80. package/src/locales/zh-CN/translation.json +0 -493
  81. package/src/process.ts +0 -29
  82. package/src/tests/direction.unit.test.ts +0 -52
  83. package/src/tests/errorMessage.unit.test.ts +0 -84
  84. package/src/tests/i18SharedOptions.unit.test.ts +0 -139
  85. package/src/tests/i18nBackend.unit.test.ts +0 -241
  86. package/src/tests/i18nFrontend.unit.test.ts +0 -404
  87. package/src/tests/i18nMiddleware.unit.test.ts +0 -159
  88. package/src/tests/loadI18next.unit.test.ts +0 -443
  89. package/src/tests/locale.test-d.ts +0 -184
  90. package/src/tests/localePlaceholders.unit.test.ts +0 -81
  91. package/src/tests/locales.unit.test.ts +0 -79
  92. package/src/tests/process.unit.test.ts +0 -33
  93. package/src/tests/thrownErrorKeys.unit.test.ts +0 -91
  94. package/src/tests/translationKey.unit.test.ts +0 -155
  95. package/src/tests/translations.unit.test.ts +0 -97
  96. package/src/tests/translator.unit.test.ts +0 -213
  97. package/src/tests/util.unit.test.ts +0 -102
  98. package/src/translationKey.ts +0 -73
  99. package/src/translations.ts +0 -55
  100. package/src/translator.ts +0 -69
  101. package/src/types.ts +0 -47
  102. package/src/util.ts +0 -25
  103. package/tsconfig.cjs.json +0 -21
  104. package/tsconfig.json +0 -22
  105. package/tsconfig.tsbuildinfo +0 -1
  106. package/tsconfig.types.json +0 -9
@@ -1,7 +1,4 @@
1
-
2
- > @prosopo/locale@3.6.2 build:cjs
3
- > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
-
1
+ $ NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
5
2
  ViteCommonJSConfig: .
6
3
  {
7
4
  tsConfigPaths: [ '/home/runner/work/captcha/captcha/packages/util/tsconfig.json' ]
@@ -28,9 +25,9 @@ dist/cjs/index.cjs 1.20 kB │ gzip: 0.34 kB
28
25
  dist/cjs/i18nBackend.cjs 1.47 kB │ gzip: 0.62 kB
29
26
  dist/cjs/loadI18next.cjs 2.03 kB │ gzip: 0.84 kB
30
27
  dist/cjs/i18nFrontend.cjs 6.07 kB │ gzip: 2.44 kB
31
- dist/cjs/locales/en/translation.cjs 17.47 kB │ gzip: 6.25 kB
28
+ dist/cjs/locales/en/translation.cjs 18.33 kB │ gzip: 6.57 kB
32
29
 
33
- ✓ built in 80ms
30
+ ✓ built in 58ms
34
31
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/ar/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/ar/translation.json
35
32
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/az/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/az/translation.json
36
33
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/cs/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/cs/translation.json
@@ -1,17 +1,14 @@
1
-
2
- > @prosopo/locale@3.6.2 build:tsc
3
- > tsc --build --verbose
4
-
5
- 12:38:03 PM - Projects in this build:
1
+ $ tsc --build --verbose
2
+ 10:11:22 AM - Projects in this build:
6
3
  * ../../dev/config/tsconfig.json
7
4
  * ../util/tsconfig.json
8
5
  * tsconfig.json
9
6
 
10
- 12:38:03 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
7
+ 10:11:22 AM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
11
8
 
12
- 12:38:03 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
9
+ 10:11:22 AM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/table.ts' is older than output '../util/tsconfig.tsbuildinfo'
13
10
 
14
- 12:38:03 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
11
+ 10:11:22 AM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
15
12
 
16
- 12:38:03 PM - Building project '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json'...
13
+ 10:11:22 AM - Building project '/home/runner/work/captcha/captcha/packages/locale/tsconfig.json'...
17
14
 
@@ -1,11 +1,5 @@
1
-
2
- > @prosopo/locale@3.6.2 build
3
- > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
-
5
-
6
- > @prosopo/locale@3.6.2 build:cross-env
7
- > vite build --config vite.esm.config.ts --mode production
8
-
1
+ $ pnpm run build:cross-env --mode ${NODE_ENV:-development}
2
+ $ vite build --config vite.esm.config.ts --mode production
9
3
  ViteEsmConfig: .
10
4
  {
11
5
  tsConfigPaths: [ '/home/runner/work/captcha/captcha/packages/util/tsconfig.json' ]
@@ -32,13 +26,13 @@ dist/translationKey.js 0.83 kB │ gzip: 0.43 kB
32
26
  dist/i18nBackend.js 1.01 kB │ gzip: 0.53 kB
33
27
  dist/loadI18next.js 1.93 kB │ gzip: 0.83 kB
34
28
  dist/i18nFrontend.js 5.98 kB │ gzip: 2.42 kB
35
- dist/locales/en/translation.js 17.23 kB │ gzip: 6.22 kB
29
+ dist/locales/en/translation.js 18.09 kB │ gzip: 6.53 kB
36
30
 
37
- ✓ built in 55ms
38
- [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/ar/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/ar/translation.json
31
+ ✓ built in 53ms
39
32
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/az/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/az/translation.json
40
33
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/cs/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/cs/translation.json
41
34
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/de/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/de/translation.json
35
+ [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/ar/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/ar/translation.json
42
36
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/el/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/el/translation.json
43
37
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/en/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/en/translation.json
44
38
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/locale/src/locales/es/translation.json to /home/runner/work/captcha/captcha/packages/locale/dist/locales/es/translation.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # @prosopo/locale
2
2
 
3
+ ## 3.8.0
4
+ ### Minor Changes
5
+
6
+ - b299a91: An audio challenge, offered only as an accessibility alternative, like reCAPTCHA's audio option. The user hears a short sequence of spoken digits and types them in.
7
+
8
+ It is off by default and needs two switches. Prosopo has to turn on the `captchaTypeFeatureFlags.audio` feature flag for the site, which the site owner cannot do, and the site owner has to set `audioAccessibilityEnabled`. When both are on, image, puzzle and icon-order challenges show a "Use audio instead" button. Pressing it swaps the visual challenge for the audio one. After a wrong answer the user stays on audio and gets a fresh clip.
9
+
10
+ Audio is never a captcha type that can be selected or routed to. A site's `captchaType`, traffic-filter categories, Restrict rules and the site-key CLI all reject it, and routing, PoW escalation and the severity tiers leave it out. The provider only serves audio against the visual session the user was already given, and only on a site with both switches on; any other audio request is refused before the session is used up, and a request without a session is always refused.
11
+
12
+ The spoken digits are synthesised by `@prosopo/audio-assets`, so there is no recorded set of clips to collect. The answer never leaves the provider, and a challenge can be submitted and verified only once, even under concurrent requests. `@prosopo/procaptcha-audio` is the widget. It and the "Use audio instead" button are built on the shared widget code in `@prosopo/procaptcha-common`, and the provider side is built on the shared interactive-captcha code that puzzle and icon-order use.
13
+
14
+ The demo playground has audio pages, and there is an end-to-end test for it.
15
+
16
+ ### Patch Changes
17
+
18
+ - e13d7a8: New captcha type: `iconOrder`. The user is shown a frame of icons and a legend, and clicks the legend's icons in the order given.
19
+
20
+ Icon-order is off by default. Only Prosopo can switch it on for a site, with the `captchaTypeFeatureFlags.iconOrder` feature flag; the site owner cannot. A site without the flag is never served icon-order by any route, and the challenge endpoint refuses it. Once the flag is on, the owner can still keep icon-order out of the frictionless flow with `frictionlessTypes.iconOrder`, the same way as image and puzzle.
21
+
22
+ The answer never leaves the provider. Icon positions are stored on the challenge record, and the widget receives only the rendered frame and legend. Grading checks order as well as position, and each icon's hit radius scales with its size. Verifying a token is single-use under concurrent requests.
23
+
24
+ `@prosopo/icon-order-assets` draws the imagery, and `@prosopo/procaptcha-icon-order` is the widget. Its text is translated into every supported language.
25
+
26
+ Puzzle and icon-order now share their server code: challenge and solution handlers, the verify route, the submit and verify pipeline, and the database record methods. The widget code they have in common moves into `@prosopo/procaptcha-common`: the lazy mount wrapper, manager expiry and dispose, spent-session handling, behavioural data encryption and trusted click coordinates. Puzzle's behaviour is unchanged.
27
+
28
+ The demo playground has icon-order pages, and there is an end-to-end test for it.
29
+
30
+ ## 3.7.0
31
+ ### Minor Changes
32
+
33
+ - dcb691b: Add a refresh control to the puzzle captcha.
34
+
35
+ A user who can't solve the puzzle they were given can now ask for a different one, from a button in the puzzle's header. The replacement comes through a new frictionless session, like a wrong answer already does.
36
+
37
+ The widget tells the provider which session was refreshed (`refreshOf`). The provider then records `refreshOf`, `refreshCount` and `refreshedAfterMs` on the new session, so refresh behaviour can be scored later. After three refreshes in a row it serves an image challenge instead, with reason `PUZZLE_REFRESH_LIMIT`. It only does this if the site has image enabled. The switch only goes from puzzle to image, so a client that lies about its refreshes can only make its own challenge harder. A client that leaves the field out gets a normal session, the same as reloading the page.
38
+
39
+ The image widget's reload button now reports itself as a refresh too. That way a user who was moved onto image isn't sent back to the puzzle by their next reload.
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [a17e8eb]
44
+ - @prosopo/util@3.3.14
45
+
3
46
  ## 3.6.2
4
47
  ### Patch Changes
5
48
 
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2022 PROSOPO LIMITED
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -27,8 +27,30 @@ var WIDGET = {
27
27
  "KEYBOARD_HINT": "Use the arrow keys to move the piece, holding shift for smaller steps. Press Enter to submit it, Home to put it back at the start, or Escape to cancel.",
28
28
  "POSITION": "{{x}} percent across, {{y}} percent down",
29
29
  "CHECKING": "Checking your answer",
30
- "RETRY_ANNOUNCEMENT": "Not quite. A new puzzle has loaded and the piece is back at the start."
31
- }
30
+ "RETRY_ANNOUNCEMENT": "Not quite. A new puzzle has loaded and the piece is back at the start.",
31
+ "REFRESH": "Show a different puzzle"
32
+ },
33
+ "ICON_ORDER": {
34
+ "DIALOG_LABEL": "Icon order challenge",
35
+ "SELECT": "Select in this order",
36
+ "RETRY": "Not quite — try again",
37
+ "LEGEND_ALT": "Icons to select, in order",
38
+ "RESET": "Reset",
39
+ "CHECKING": "Checking…",
40
+ "SUBMIT": "OK"
41
+ },
42
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
43
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
44
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
45
+ "AUDIO_PLAY": "Play",
46
+ "AUDIO_REPLAY": "Play again",
47
+ "AUDIO_PLAYING": "Playing",
48
+ "AUDIO_FINISHED": "Playback finished",
49
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
50
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
51
+ "AUDIO_SUBMIT": "Verify",
52
+ "AUDIO_CHECKING": "Checking",
53
+ "AUDIO_ALTERNATIVE": "Use audio instead"
32
54
  };
33
55
  var GENERAL = {
34
56
  "JSON_LOAD_FAILED": "Failed to load JSON file",
@@ -398,8 +398,30 @@
398
398
  "KEYBOARD_HINT": "استخدم مفاتيح الأسهم لتحريك القطعة، مع الضغط على Shift لخطوات أصغر. اضغط Enter لإرسالها، أو Home لإعادتها إلى البداية، أو Escape للإلغاء.",
399
399
  "POSITION": "{{x}} بالمئة من اليسار، {{y}} بالمئة من الأعلى",
400
400
  "CHECKING": "جارٍ التحقق من إجابتك",
401
- "RETRY_ANNOUNCEMENT": "اقتربت. تم تحميل أحجية جديدة وعادت القطعة إلى البداية."
402
- }
401
+ "RETRY_ANNOUNCEMENT": "اقتربت. تم تحميل أحجية جديدة وعادت القطعة إلى البداية.",
402
+ "REFRESH": "أحجية مختلفة"
403
+ },
404
+ "ICON_ORDER": {
405
+ "DIALOG_LABEL": "تحدي ترتيب الأيقونات",
406
+ "SELECT": "اختر بهذا الترتيب",
407
+ "RETRY": "اقتربت — حاول مرة أخرى",
408
+ "LEGEND_ALT": "الأيقونات المطلوب اختيارها بالترتيب",
409
+ "RESET": "إعادة تعيين",
410
+ "CHECKING": "جارٍ التحقق…",
411
+ "SUBMIT": "موافق"
412
+ },
413
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
414
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
415
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
416
+ "AUDIO_PLAY": "Play",
417
+ "AUDIO_REPLAY": "Play again",
418
+ "AUDIO_PLAYING": "Playing",
419
+ "AUDIO_FINISHED": "Playback finished",
420
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
421
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
422
+ "AUDIO_SUBMIT": "Verify",
423
+ "AUDIO_CHECKING": "Checking",
424
+ "AUDIO_ALTERNATIVE": "Use audio instead"
403
425
  },
404
426
  "CONTRACT": {
405
427
  "INVALID_ADDRESS": "فشل في ترميز عنوان غير صالح",
@@ -398,8 +398,30 @@
398
398
  "KEYBOARD_HINT": "Hissəni ox düymələri ilə hərəkət etdirin, daha kiçik addımlar üçün Shift düyməsini basılı saxlayın. Göndərmək üçün Enter, başlanğıca qaytarmaq üçün Home, ləğv etmək üçün Escape düyməsini basın.",
399
399
  "POSITION": "soldan {{x}} faiz, yuxarıdan {{y}} faiz",
400
400
  "CHECKING": "Cavabınız yoxlanılır",
401
- "RETRY_ANNOUNCEMENT": "Az qaldı. Yeni tapmaca yükləndi və hissə yenidən başlanğıcdadır."
402
- }
401
+ "RETRY_ANNOUNCEMENT": "Az qaldı. Yeni tapmaca yükləndi və hissə yenidən başlanğıcdadır.",
402
+ "REFRESH": "Başqa tapmaca"
403
+ },
404
+ "ICON_ORDER": {
405
+ "DIALOG_LABEL": "İkon sırası tapşırığı",
406
+ "SELECT": "Bu ardıcıllıqla seçin",
407
+ "RETRY": "Az qaldı — yenidən cəhd edin",
408
+ "LEGEND_ALT": "Seçiləcək ikonlar, ardıcıllıqla",
409
+ "RESET": "Sıfırla",
410
+ "CHECKING": "Yoxlanılır…",
411
+ "SUBMIT": "OK"
412
+ },
413
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
414
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
415
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
416
+ "AUDIO_PLAY": "Play",
417
+ "AUDIO_REPLAY": "Play again",
418
+ "AUDIO_PLAYING": "Playing",
419
+ "AUDIO_FINISHED": "Playback finished",
420
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
421
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
422
+ "AUDIO_SUBMIT": "Verify",
423
+ "AUDIO_CHECKING": "Checking",
424
+ "AUDIO_ALTERNATIVE": "Use audio instead"
403
425
  },
404
426
  "CONTRACT": {
405
427
  "INVALID_ADDRESS": "Geçərsiz ünvan kodlanmadı",
@@ -398,8 +398,30 @@
398
398
  "KEYBOARD_HINT": "Dílek posouvejte šipkami, s podrženým Shiftem se posouvá po menších krocích. Stisknutím Enter jej odešlete, klávesou Home jej vrátíte na začátek, klávesou Escape akci zrušíte.",
399
399
  "POSITION": "{{x}} procent zleva, {{y}} procent shora",
400
400
  "CHECKING": "Ověřujeme vaši odpověď",
401
- "RETRY_ANNOUNCEMENT": "Skoro. Načetla se nová skládačka a dílek je zpět na začátku."
402
- }
401
+ "RETRY_ANNOUNCEMENT": "Skoro. Načetla se nová skládačka a dílek je zpět na začátku.",
402
+ "REFRESH": "Jiná skládačka"
403
+ },
404
+ "ICON_ORDER": {
405
+ "DIALOG_LABEL": "Úloha s pořadím ikon",
406
+ "SELECT": "Vyberte v tomto pořadí",
407
+ "RETRY": "Skoro — zkuste to znovu",
408
+ "LEGEND_ALT": "Ikony k výběru, v daném pořadí",
409
+ "RESET": "Obnovit",
410
+ "CHECKING": "Ověřujeme…",
411
+ "SUBMIT": "OK"
412
+ },
413
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
414
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
415
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
416
+ "AUDIO_PLAY": "Play",
417
+ "AUDIO_REPLAY": "Play again",
418
+ "AUDIO_PLAYING": "Playing",
419
+ "AUDIO_FINISHED": "Playback finished",
420
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
421
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
422
+ "AUDIO_SUBMIT": "Verify",
423
+ "AUDIO_CHECKING": "Checking",
424
+ "AUDIO_ALTERNATIVE": "Use audio instead"
403
425
  },
404
426
  "CONTRACT": {
405
427
  "INVALID_ADDRESS": "Nepodařilo se zakódovat neplatnou adresu",
@@ -99,8 +99,30 @@
99
99
  "KEYBOARD_HINT": "Bewege das Teil mit den Pfeiltasten, mit gedrückter Umschalttaste in kleineren Schritten. Drücke die Eingabetaste zum Absenden, Pos1, um das Teil zurückzusetzen, oder Escape zum Abbrechen.",
100
100
  "POSITION": "{{x}} Prozent von links, {{y}} Prozent von oben",
101
101
  "CHECKING": "Deine Antwort wird geprüft",
102
- "RETRY_ANNOUNCEMENT": "Knapp daneben. Ein neues Puzzle wurde geladen und das Teil steht wieder am Anfang."
103
- }
102
+ "RETRY_ANNOUNCEMENT": "Knapp daneben. Ein neues Puzzle wurde geladen und das Teil steht wieder am Anfang.",
103
+ "REFRESH": "Anderes Puzzle"
104
+ },
105
+ "ICON_ORDER": {
106
+ "DIALOG_LABEL": "Symbolreihenfolge-Aufgabe",
107
+ "SELECT": "In dieser Reihenfolge auswählen",
108
+ "RETRY": "Knapp daneben — versuche es erneut",
109
+ "LEGEND_ALT": "Auszuwählende Symbole, in Reihenfolge",
110
+ "RESET": "Zurücksetzen",
111
+ "CHECKING": "Wird geprüft…",
112
+ "SUBMIT": "OK"
113
+ },
114
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
115
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
116
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
117
+ "AUDIO_PLAY": "Play",
118
+ "AUDIO_REPLAY": "Play again",
119
+ "AUDIO_PLAYING": "Playing",
120
+ "AUDIO_FINISHED": "Playback finished",
121
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
122
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
123
+ "AUDIO_SUBMIT": "Verify",
124
+ "AUDIO_CHECKING": "Checking",
125
+ "AUDIO_ALTERNATIVE": "Use audio instead"
104
126
  },
105
127
  "CONTRACT": {
106
128
  "INVALID_ADDRESS": "Ungültige Adresse konnte nicht codiert werden",
@@ -398,8 +398,30 @@
398
398
  "KEYBOARD_HINT": "Μετακινήστε το κομμάτι με τα βέλη, κρατώντας το Shift για μικρότερα βήματα. Πατήστε Enter για υποβολή, Home για να το επαναφέρετε στην αρχή ή Escape για ακύρωση.",
399
399
  "POSITION": "{{x}} τοις εκατό από αριστερά, {{y}} τοις εκατό από πάνω",
400
400
  "CHECKING": "Ελέγχουμε την απάντησή σας",
401
- "RETRY_ANNOUNCEMENT": "Παραλίγο. Φορτώθηκε νέο παζλ και το κομμάτι επέστρεψε στην αρχή."
402
- }
401
+ "RETRY_ANNOUNCEMENT": "Παραλίγο. Φορτώθηκε νέο παζλ και το κομμάτι επέστρεψε στην αρχή.",
402
+ "REFRESH": "Άλλο παζλ"
403
+ },
404
+ "ICON_ORDER": {
405
+ "DIALOG_LABEL": "Δοκιμασία σειράς εικονιδίων",
406
+ "SELECT": "Επιλέξτε με αυτή τη σειρά",
407
+ "RETRY": "Παραλίγο — δοκιμάστε ξανά",
408
+ "LEGEND_ALT": "Εικονίδια για επιλογή, με τη σειρά",
409
+ "RESET": "Επαναφορά",
410
+ "CHECKING": "Γίνεται έλεγχος…",
411
+ "SUBMIT": "OK"
412
+ },
413
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
414
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
415
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
416
+ "AUDIO_PLAY": "Play",
417
+ "AUDIO_REPLAY": "Play again",
418
+ "AUDIO_PLAYING": "Playing",
419
+ "AUDIO_FINISHED": "Playback finished",
420
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
421
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
422
+ "AUDIO_SUBMIT": "Verify",
423
+ "AUDIO_CHECKING": "Checking",
424
+ "AUDIO_ALTERNATIVE": "Use audio instead"
403
425
  },
404
426
  "CONTRACT": {
405
427
  "INVALID_ADDRESS": "Αποτυχία κωδικοποίησης μη έγκυρης διεύθυνσης",
@@ -27,8 +27,30 @@ var WIDGET = {
27
27
  "KEYBOARD_HINT": "Use the arrow keys to move the piece, holding shift for smaller steps. Press Enter to submit it, Home to put it back at the start, or Escape to cancel.",
28
28
  "POSITION": "{{x}} percent across, {{y}} percent down",
29
29
  "CHECKING": "Checking your answer",
30
- "RETRY_ANNOUNCEMENT": "Not quite. A new puzzle has loaded and the piece is back at the start."
31
- }
30
+ "RETRY_ANNOUNCEMENT": "Not quite. A new puzzle has loaded and the piece is back at the start.",
31
+ "REFRESH": "Show a different puzzle"
32
+ },
33
+ "ICON_ORDER": {
34
+ "DIALOG_LABEL": "Icon order challenge",
35
+ "SELECT": "Select in this order",
36
+ "RETRY": "Not quite — try again",
37
+ "LEGEND_ALT": "Icons to select, in order",
38
+ "RESET": "Reset",
39
+ "CHECKING": "Checking…",
40
+ "SUBMIT": "OK"
41
+ },
42
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
43
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
44
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
45
+ "AUDIO_PLAY": "Play",
46
+ "AUDIO_REPLAY": "Play again",
47
+ "AUDIO_PLAYING": "Playing",
48
+ "AUDIO_FINISHED": "Playback finished",
49
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
50
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
51
+ "AUDIO_SUBMIT": "Verify",
52
+ "AUDIO_CHECKING": "Checking",
53
+ "AUDIO_ALTERNATIVE": "Use audio instead"
32
54
  };
33
55
  var GENERAL = {
34
56
  "JSON_LOAD_FAILED": "Failed to load JSON file",
@@ -29,8 +29,30 @@
29
29
  "KEYBOARD_HINT": "Use the arrow keys to move the piece, holding shift for smaller steps. Press Enter to submit it, Home to put it back at the start, or Escape to cancel.",
30
30
  "POSITION": "{{x}} percent across, {{y}} percent down",
31
31
  "CHECKING": "Checking your answer",
32
- "RETRY_ANNOUNCEMENT": "Not quite. A new puzzle has loaded and the piece is back at the start."
33
- }
32
+ "RETRY_ANNOUNCEMENT": "Not quite. A new puzzle has loaded and the piece is back at the start.",
33
+ "REFRESH": "Show a different puzzle"
34
+ },
35
+ "ICON_ORDER": {
36
+ "DIALOG_LABEL": "Icon order challenge",
37
+ "SELECT": "Select in this order",
38
+ "RETRY": "Not quite — try again",
39
+ "LEGEND_ALT": "Icons to select, in order",
40
+ "RESET": "Reset",
41
+ "CHECKING": "Checking…",
42
+ "SUBMIT": "OK"
43
+ },
44
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
45
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
46
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
47
+ "AUDIO_PLAY": "Play",
48
+ "AUDIO_REPLAY": "Play again",
49
+ "AUDIO_PLAYING": "Playing",
50
+ "AUDIO_FINISHED": "Playback finished",
51
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
52
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
53
+ "AUDIO_SUBMIT": "Verify",
54
+ "AUDIO_CHECKING": "Checking",
55
+ "AUDIO_ALTERNATIVE": "Use audio instead"
34
56
  },
35
57
  "GENERAL": {
36
58
  "JSON_LOAD_FAILED": "Failed to load JSON file",
@@ -99,8 +99,30 @@
99
99
  "KEYBOARD_HINT": "Usa las teclas de flecha para mover la pieza, manteniendo Mayús para pasos más pequeños. Pulsa Intro para enviarla, Inicio para devolverla al principio o Escape para cancelar.",
100
100
  "POSITION": "{{x}} por ciento desde la izquierda, {{y}} por ciento desde arriba",
101
101
  "CHECKING": "Comprobando tu respuesta",
102
- "RETRY_ANNOUNCEMENT": "Casi. Se ha cargado un rompecabezas nuevo y la pieza vuelve a estar al principio."
103
- }
102
+ "RETRY_ANNOUNCEMENT": "Casi. Se ha cargado un rompecabezas nuevo y la pieza vuelve a estar al principio.",
103
+ "REFRESH": "Otro rompecabezas"
104
+ },
105
+ "ICON_ORDER": {
106
+ "DIALOG_LABEL": "Desafío de orden de iconos",
107
+ "SELECT": "Selecciona en este orden",
108
+ "RETRY": "Casi — inténtalo de nuevo",
109
+ "LEGEND_ALT": "Iconos que seleccionar, en orden",
110
+ "RESET": "Restablecer",
111
+ "CHECKING": "Comprobando…",
112
+ "SUBMIT": "Aceptar"
113
+ },
114
+ "AUDIO_CHALLENGE_LABEL": "Audio verification challenge",
115
+ "AUDIO_INSTRUCTIONS": "Listen and type the {{count}} digits you hear.",
116
+ "AUDIO_INPUT_LABEL": "Type the {{count}} digits you hear",
117
+ "AUDIO_PLAY": "Play",
118
+ "AUDIO_REPLAY": "Play again",
119
+ "AUDIO_PLAYING": "Playing",
120
+ "AUDIO_FINISHED": "Playback finished",
121
+ "AUDIO_PLAYBACK_FAILED": "Audio could not be played. Check your device volume and try again.",
122
+ "AUDIO_INCORRECT": "That wasn't right. Here's a new one.",
123
+ "AUDIO_SUBMIT": "Verify",
124
+ "AUDIO_CHECKING": "Checking",
125
+ "AUDIO_ALTERNATIVE": "Use audio instead"
104
126
  },
105
127
  "CONTRACT": {
106
128
  "INVALID_ADDRESS": "Error al codificar dirección inválida",