all: sync with master

This commit is contained in:
Ainar Garipov
2022-11-08 17:53:30 +03:00
parent 471668d19a
commit 67fe064fcf
10 changed files with 132 additions and 42 deletions

View File

@@ -188,6 +188,10 @@ After the download you'll find the output locales in the `client/src/__locales/`
directory.
Optional environment:
* `SLEEP_TIME`: set the sleep time between downloads for `locales:download`,
in milliseconds. The default is 250 ms.
* `UPLOAD_LANGUAGE`: set an alternative language for `locales:upload` to
upload.

View File

@@ -110,7 +110,8 @@ const download = async () => {
// Don't request the Crowdin API too aggressively to prevent spurious
// 400 errors.
await sleep(400);
const sleepTime = process.env.SLEEP_TIME || 250;
await sleep(sleepTime);
}
Promise