Update locales, add locales scripts, update locales readme

This commit is contained in:
ArtemBaskal
2020-04-07 16:17:57 +03:00
parent 39447649d6
commit d0d481dd0e
19 changed files with 105 additions and 98 deletions

View File

@@ -2,16 +2,8 @@
### Usage
```
npm install
TWOSKY_URI=<API URI> TWOSKY_CLIENT_ID=<PROJECT ID> node download.js
TWOSKY_URI=<API URI> TWOSKY_CLIENT_ID=<PROJECT ID> node upload.js
```
- `npm install` Install the dependencies in the local node_modules folder
- `npm run locales:download` Download and save all locales
- `npm run locales:upload` Upload base `en` locale
After download you'll find the output locales in the `client/src/__locales/` folder.
Examples:
```
TWOSKY_URI=https://twosky.example/api/v1 TWOSKY_CLIENT_ID=adguardhome node download.js
TWOSKY_URI=https://twosky.example/api/v1 TWOSKY_CLIENT_ID=adguardhome node upload.js
```