Skip to content

Commit

Permalink
Merge branch 'master' into 1472-edns-custom-ip-api
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Mar 21, 2023
2 parents d5ca8b6 + c3edab4 commit 8b2ac22
Show file tree
Hide file tree
Showing 10 changed files with 480 additions and 1,138 deletions.
24 changes: 15 additions & 9 deletions scripts/README.md
Expand Up @@ -178,22 +178,28 @@ manifest file templates, and helper scripts.

### Usage

* `npm install`: install dependencies. Run this first.
* `npm run locales:download`: download and save all translations.
* `npm run locales:upload`: upload the base `en` locale.
* `npm run locales:summary`: show the current locales summary.
* `npm run locales:unused`: show the list of unused strings.
* `go run main.go help`: print usage.

* `go run main.go download [-n <count>]`: download and save all translations.
`n` is optional flag where count is a number of concurrent downloads.

* `go run main.go upload`: upload the base `en` locale.

* `go run main.go summary`: show the current locales summary.

* `go run main.go unused`: show the list of unused strings.

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 `upload`.

* `TWOSKY_URI`: set an alternative URL for `download` or `upload`.

* `UPLOAD_LANGUAGE`: set an alternative language for `locales:upload` to
upload.
* `TWOSKY_PROJECT_ID`: set an alternative project ID for `download` or
`upload`.



Expand Down
1 change: 1 addition & 0 deletions scripts/make/go-lint.sh
Expand Up @@ -182,6 +182,7 @@ run_linter gocyclo --over 10\
./internal/version/\
./scripts/blocked-services/\
./scripts/vetted-filters/\
./scripts/translations/\
./main.go\
;

Expand Down
1 change: 0 additions & 1 deletion scripts/translations/.gitignore

This file was deleted.

41 changes: 0 additions & 41 deletions scripts/translations/count.js

This file was deleted.

125 changes: 0 additions & 125 deletions scripts/translations/download.js

This file was deleted.

0 comments on commit 8b2ac22

Please sign in to comment.