scratch-l10n 6.1.122 → 6.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/editor/blocks/it.json +6 -6
- package/locales/blocks-msgs.js +6 -6
- package/package.json +1 -1
- package/scripts/lib/transifex.mts +12 -2
package/editor/blocks/it.json
CHANGED
|
@@ -245,18 +245,18 @@
|
|
|
245
245
|
"DELETE_X_BLOCKS": "Cancella %1 Blocchi",
|
|
246
246
|
"DELETE_ALL_BLOCKS": "Cancellare i %1 blocchi?",
|
|
247
247
|
"CLEAN_UP": "Riordina i Blocchi",
|
|
248
|
-
"COLLAPSE_BLOCK": "
|
|
249
|
-
"EXPAND_BLOCK": "
|
|
250
|
-
"COLLAPSE_ALL": "
|
|
251
|
-
"EXPAND_ALL": "
|
|
252
|
-
"COLLAPSED_WARNINGS_WARNING": "
|
|
248
|
+
"COLLAPSE_BLOCK": "Chiudi Blocco",
|
|
249
|
+
"EXPAND_BLOCK": "Espandi Blocco",
|
|
250
|
+
"COLLAPSE_ALL": "Chiudi Blocchi",
|
|
251
|
+
"EXPAND_ALL": "Espandi Blocchi",
|
|
252
|
+
"COLLAPSED_WARNINGS_WARNING": "I blocchi chiusi contengono avvisi.",
|
|
253
253
|
"HELP": "Aiuto",
|
|
254
254
|
"UNDO": "Annulla",
|
|
255
255
|
"REDO": "Ripristina",
|
|
256
256
|
"EDIT_PROCEDURE": "Modifica",
|
|
257
257
|
"SHOW_PROCEDURE_DEFINITION": "Vai alla definizione",
|
|
258
258
|
"WORKSPACE_COMMENT_DEFAULT_TEXT": "Dì qualcosa...",
|
|
259
|
-
"WORKSPACE_ARIA_LABEL": "
|
|
259
|
+
"WORKSPACE_ARIA_LABEL": "Area del Codice",
|
|
260
260
|
"COLOUR_HUE_LABEL": "Colore",
|
|
261
261
|
"COLOUR_SATURATION_LABEL": "Saturazione",
|
|
262
262
|
"COLOUR_BRIGHTNESS_LABEL": "Luminosità",
|
package/locales/blocks-msgs.js
CHANGED
|
@@ -11635,18 +11635,18 @@ export default {
|
|
|
11635
11635
|
"DELETE_X_BLOCKS": "Cancella %1 Blocchi",
|
|
11636
11636
|
"DELETE_ALL_BLOCKS": "Cancellare i %1 blocchi?",
|
|
11637
11637
|
"CLEAN_UP": "Riordina i Blocchi",
|
|
11638
|
-
"COLLAPSE_BLOCK": "
|
|
11639
|
-
"EXPAND_BLOCK": "
|
|
11640
|
-
"COLLAPSE_ALL": "
|
|
11641
|
-
"EXPAND_ALL": "
|
|
11642
|
-
"COLLAPSED_WARNINGS_WARNING": "
|
|
11638
|
+
"COLLAPSE_BLOCK": "Chiudi Blocco",
|
|
11639
|
+
"EXPAND_BLOCK": "Espandi Blocco",
|
|
11640
|
+
"COLLAPSE_ALL": "Chiudi Blocchi",
|
|
11641
|
+
"EXPAND_ALL": "Espandi Blocchi",
|
|
11642
|
+
"COLLAPSED_WARNINGS_WARNING": "I blocchi chiusi contengono avvisi.",
|
|
11643
11643
|
"HELP": "Aiuto",
|
|
11644
11644
|
"UNDO": "Annulla",
|
|
11645
11645
|
"REDO": "Ripristina",
|
|
11646
11646
|
"EDIT_PROCEDURE": "Modifica",
|
|
11647
11647
|
"SHOW_PROCEDURE_DEFINITION": "Vai alla definizione",
|
|
11648
11648
|
"WORKSPACE_COMMENT_DEFAULT_TEXT": "Dì qualcosa...",
|
|
11649
|
-
"WORKSPACE_ARIA_LABEL": "
|
|
11649
|
+
"WORKSPACE_ARIA_LABEL": "Area del Codice",
|
|
11650
11650
|
"COLOUR_HUE_LABEL": "Colore",
|
|
11651
11651
|
"COLOUR_SATURATION_LABEL": "Saturazione",
|
|
11652
11652
|
"COLOUR_BRIGHTNESS_LABEL": "Luminosità",
|
package/package.json
CHANGED
|
@@ -92,13 +92,21 @@ const TX_UPLOAD_POLL_INTERVAL_MS = 2_000
|
|
|
92
92
|
const TX_UPLOAD_TIMEOUT_MS = 5 * 60_000
|
|
93
93
|
/** Per-request timeout for downloading a resource from the CDN, in milliseconds. */
|
|
94
94
|
const TX_DOWNLOAD_TIMEOUT_MS = 60_000
|
|
95
|
+
/**
|
|
96
|
+
* How long the Transifex SDK waits between checks on whether a download event's file is ready, in
|
|
97
|
+
* seconds (the SDK's own unit). The SDK sleeps this long before its first check, and files are
|
|
98
|
+
* usually ready within a fraction of a second, so the SDK's 5-second default dominates a bulk pull.
|
|
99
|
+
*/
|
|
100
|
+
const TX_DOWNLOAD_POLL_INTERVAL_S = 0.25
|
|
95
101
|
/**
|
|
96
102
|
* Maximum number of Transifex download events to create concurrently. Each `txPull` creates a
|
|
97
103
|
* download event (a rate-limited API call); fanning every (resource, locale) pair out at once
|
|
98
104
|
* overruns the API's throttle. Bounding the create step keeps a bulk pull under the limit while
|
|
99
|
-
* still overlapping enough requests to make progress.
|
|
105
|
+
* still overlapping enough requests to make progress. With the short poll interval, 8 pulls all of
|
|
106
|
+
* scratch-website (3,840 files) in about 10 minutes without a single 429; 16 is only about 2 minutes
|
|
107
|
+
* faster and gets throttled on every run.
|
|
100
108
|
*/
|
|
101
|
-
const TX_MAX_CONCURRENT_DOWNLOADS =
|
|
109
|
+
const TX_MAX_CONCURRENT_DOWNLOADS = 8
|
|
102
110
|
/** Upper bound on how long to honor a throttle's "expected available" hint before giving up on it. */
|
|
103
111
|
const TX_MAX_THROTTLE_WAIT_MS = 120_000
|
|
104
112
|
|
|
@@ -302,6 +310,7 @@ const getResourceLocation = async function (
|
|
|
302
310
|
// if locale is English, create a download event of the source file
|
|
303
311
|
if (localeCode === SOURCE_LOCALE) {
|
|
304
312
|
return (await transifexApi.ResourceStringsAsyncDownload.download({
|
|
313
|
+
interval: TX_DOWNLOAD_POLL_INTERVAL_S,
|
|
305
314
|
resource,
|
|
306
315
|
})) as string
|
|
307
316
|
}
|
|
@@ -315,6 +324,7 @@ const getResourceLocation = async function (
|
|
|
315
324
|
|
|
316
325
|
// if locale is not English, create a download event of the translation file
|
|
317
326
|
return (await transifexApi.ResourceTranslationsAsyncDownload.download({
|
|
327
|
+
interval: TX_DOWNLOAD_POLL_INTERVAL_S,
|
|
318
328
|
mode,
|
|
319
329
|
resource,
|
|
320
330
|
language,
|