Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eldoy/snakk
Translate YAML files using the Google Translate API
https://github.com/eldoy/snakk
Last synced: 6 days ago
JSON representation
Translate YAML files using the Google Translate API
- Host: GitHub
- URL: https://github.com/eldoy/snakk
- Owner: eldoy
- Created: 2020-02-07T22:11:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-01T01:02:09.000Z (7 months ago)
- Last Synced: 2024-10-30T14:06:02.340Z (16 days ago)
- Language: JavaScript
- Homepage:
- Size: 351 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Snakk
This tool lets your translate YAML files using the Google Translate API from the command line.
### Installation
```bash
npm i -g snakk
```
Add your [Google Translate API credentials](https://cloud.google.com/translate/docs) to `$HOME/.google/credentials.json` for example.Then add the following to your `.bashrc` or `.zshrc`:
```bash
export GOOGLE_APPLICATION_CREDENTIALS="$HOME/.google/credentials.json"
```### Usage
```bash
# Help
snakk# Anatomy
snakk translate [input] [output] [from] [to]# Example
snakk translate en.yml no.yml en no
```### Supported languages
The languages supported can be found here:
[Google Cloud API Translate Languages](https://cloud.google.com/translate/docs/languages)
### License
ISC licensed. Enjoy!