Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sejas/woonivers-spreadsheet-translations-to-json
Google Spreadsheet to i18n JSON files. https://www.npmjs.com/package/@woonivers/woo-translate
https://github.com/sejas/woonivers-spreadsheet-translations-to-json
Last synced: 14 days ago
JSON representation
Google Spreadsheet to i18n JSON files. https://www.npmjs.com/package/@woonivers/woo-translate
- Host: GitHub
- URL: https://github.com/sejas/woonivers-spreadsheet-translations-to-json
- Owner: sejas
- License: mit
- Created: 2019-03-01T10:48:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T22:43:23.000Z (about 2 months ago)
- Last Synced: 2024-12-15T14:43:56.731Z (19 days ago)
- Language: TypeScript
- Size: 187 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# woo-translate CLI
A CLI for extracting the texts from a spreadsheet and saving them into local files.
## Requirements:
You need this folder: ~/.woo
There you must save the Google Credentials Config file:```json
{
"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
## Commands:
### TRANSLATE EN, ES
```sh
woo-translate --path=some/local/path/to/your/project --id=1B-THIS-IS-THE-GSPREADSHEET-ID
```### TRANSLATE EN, ES and show DEBUG log
```sh
woo-translate --path=some/local/path/to/your/project --id=1B-THIS-IS-THE-GSPREADSHEET-ID --verbose
```### SPECIFY YOUR LANGUAGES
```sh
woo-translate --path=some/local/path/to/your/project --id=1B-THIS-IS-THE-GSPREADSHEET-ID --langs=en,es,ru,fr
```## Publishing to NPM
```shell
$ npm publish
```# License
MIT - see LICENSE