A CLI for extracting the texts from a spreadsheet and saving them into local files.
You need this folder: ~/.woo There you must save the Google Credentials Config file:
{
"installed": {
"client_id": "aoisdjfaoñjdfañosifjañosdfij.apps.googleusercontent.com",
"project_id": "great-app-1111111111",
"client_secret": "keepthissecret",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://www.googleapis.com/oauth2/v3/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"redirect_uris": ["urn:ietf:wg:oauth:2.0:oob", "http://localhost"]
}
}
Where client_id
, project_id
, client_secret
must be modified with your project info
woo-translate --path=some/local/path/to/your/project --id=1B-THIS-IS-THE-GSPREADSHEET-ID
woo-translate --path=some/local/path/to/your/project --id=1B-THIS-IS-THE-GSPREADSHEET-ID --verbose
woo-translate --path=some/local/path/to/your/project --id=1B-THIS-IS-THE-GSPREADSHEET-ID --langs=en,es,ru,fr
$ npm publish
MIT - see LICENSE