snakk
v0.3.1
Published
Translate YAML files using the Google Translate API
Readme
Snakk
This tool lets your translate YAML files using the Google Translate API from the command line.
Installation
npm i -g snakkAdd your Google Translate API credentials to $HOME/.google/credentials.json for example.
Then add the following to your .bashrc or .zshrc:
export GOOGLE_APPLICATION_CREDENTIALS="$HOME/.google/credentials.json"Usage
# Help
snakk
# Anatomy
snakk translate [input] [output] [from] [to]
# Example
snakk translate en.yml no.yml en noSupported languages
The languages supported can be found here:
Google Cloud API Translate Languages
License
ISC licensed. Enjoy!
